﻿@inject NavigationManager Navigation
@inject IJSRuntime JSRuntime

@code { 
    protected override void OnInitialized()
    {
        if (JSRuntime is IJSInProcessRuntime)
        {
          //  Navigation.NavigateTo($"authentication/login?returnUrl={Uri.EscapeDataString(Navigation.Uri)}");
               Navigation.NavigateTo($"http://localhost:44381/account/login?returnUrl={Uri.EscapeDataString(Navigation.Uri)}", true);
        }
        else
        {
            Navigation.NavigateTo($"http://localhost:44381/account/login?returnUrl={Uri.EscapeDataString(Navigation.Uri)}", true);
        }
    } 
}
